package com.xiaocikuai.smallchunks.controller.JTEController;

import com.alibaba.fastjson.JSONObject;
import com.yl.jms.sdk.JtExpressApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;


@RestController
public class CheckCusPwdController {

    @Autowired
    private JtExpressApi jtExpressApi;

    /**
     * 电子面单账号检验接口地址
     */
    public static final String url = "http://test-openapi.jtexpress.com.cn/webopenplatformapi/api/vip/checkCusPwd";

    @GetMapping("/checkCusPwd")
    public JSONObject checkCusPwd() throws IOException {
        JSONObject location = jtExpressApi.postByCustom(null,url);
        return location;
    }

}
